home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
tcl
/
tclm_1_0.lha
/
tclm-1.0
/
MLIB
/
DEVICES
next >
Wrap
Text File
|
1993-08-16
|
1KB
|
27 lines
So you want to write an interface between tclm and your
favorite MIDI driver. I must first warn you of a few caveats.
Though I've tried to avoid it, I guessing that the interface
hooks I've set up are geared towards MPU401 compatible
drivers. This wasn't done intentionally, it's just I don't
know anything about SoundBlasters or other cards and don't
have any idea how the interface is designed.
It is also possible that the device hooks a oriented at
the BSD/386 driver. Again I tried to avoid it, but it is
the only driver I am familiar with.
Well, enough warnings, this is what you have to do. Just
create a file containing all the routines listed in mdevice.h
and fill them in. Some assumptions were made when I decided
to make this routines the interface points.
Assumption one is that the midi device is only one descriptor.
This might seem like a basic assumption, but it was not the case
with the old BSD/386 MPU-401 driver. BTW, the old driver is no
long supported.
Assumption number two isn't too bad. I've assumed the device
can make use of the reltempo parameter to the init_midi_device
routine. If it can't, then just ignore it.
Ok, I think that's it, otherwise the routines should allow
some bit of flexibility in actual implementation. Here are
the routines, what they should do and their parameters.
See the tclm_interfaces(3) man page for information about
the routines you need to write.